/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: PACKAGE_NAME
 * @File: StudentOverWrite.java
 * @Time: 2023/3/14 15:13
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class StudentSuper extends PersonSuper {
    private String school;

    public StudentSuper(String name, int age, String school) {
        super(name, age);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public void getInfo() {
        // System.out.println("name: " + getName() + " " + "age: " + getAge() + " " + "school: " + getSchool());

        // 通过 super 访问父类的方法
        super.getInfo();
        System.out.println("school: " + getSchool());
    }
}
